Detect a trigger and delete

Hi,

How to detect a trigger which pops up every time module is opened and prevents export unless closed. I tried below code

Module m = read(// some module. false)

trigger t = null

for t in m do

{

    delete t

}

Any suggestions?? I have looked into Galactic solutions but i need simple basic idea as above.

Thanks

Chitra


ChitraUTAS - Tue Nov 07 04:40:37 EST 2017

Re: Detect a trigger and delete
Mike.Scharnow - Tue Nov 07 05:30:29 EST 2017

I don't have access to DOORS today, but: do you have enough access rights? I think you have to open the module in Edit mode (Module m = edit (some module..)).

Before the line "delete t", add the line "print name t", so you can see whether there really are triggers and whether they are deleted successfully.

The problem that you describe is probably not related to a trigger but to a dxl layout column or a dxl attribute. try to open the module with the standard view (Module m = read (module_name, true, true)). Does the error still pop up?

Re: Detect a trigger and delete
ChitraUTAS - Tue Nov 07 05:46:18 EST 2017

Mike.Scharnow - Tue Nov 07 05:30:29 EST 2017

I don't have access to DOORS today, but: do you have enough access rights? I think you have to open the module in Edit mode (Module m = edit (some module..)).

Before the line "delete t", add the line "print name t", so you can see whether there really are triggers and whether they are deleted successfully.

The problem that you describe is probably not related to a trigger but to a dxl layout column or a dxl attribute. try to open the module with the standard view (Module m = read (module_name, true, true)). Does the error still pop up?

Hi,

 

Thanks for responding.

Even in exclusive edit problem persists. I have to manual click cross to close trigger. My script is actually exporting a module and this trigger just pops up and restricts export.

Let me clarify, i just want to close the pop-up and not delete trigger from the root folder. Is it clear?

Chitra